// 全局混入接口,主要是检测页面的按钮是否显示，用来做接口权限控制的
import Vue from 'vue'
import { mapGetters } from 'vuex'

const permissions = {
    computed: {
        ...mapGetters(['getInterfaces'])
    },
    methods: {
        searchInterface(name) {
            return this.getInterfaces.includes(name)
        }
    }
}
Vue.mixin(permissions)